/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DataMining;

/**
 *
 * @author Tuan
 */
public class MathExt {
 
    public static double findSmallest(double[] arrayDoubles){
        double a = arrayDoubles[0];
        for(int i = 0; i < arrayDoubles.length; i++){
            if(arrayDoubles[i] > a){
                a = arrayDoubles[i];
            }
        }
        return a;
    }
    
    public static double roundUp(double a){
        return (double)(int)((a+0.005)*100.0)/100.0;
    }
    
}
